package com.lky.marshallmall.ware.feign;

import com.lky.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/3/24 19:14
 */

@FeignClient("mall-product")
public interface ProductFeignService {

    /**
     * 1.让所有请求发给网关
     * @FeignClient("marshall-gateway")
     * @RequestMapping("/api/product/skuinfo/info/{skuId}")
     * @param skuId
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);


}
